package com.red.entity;

public class User {
    private int uID;
    private String uName;
    private String uAccount;
    private String uPassword;
    private String uEmail;
    private int uLevel;

    public User(String uName, String uAccount, String uPassword, String uEmail, int uLevel) {
        this.uName = uName;
        this.uAccount = uAccount;
        this.uPassword = uPassword;
        this.uEmail = uEmail;
        this.uLevel = uLevel;
    }

    public User() {
    }

    static public class INFO {
        public static final String NAME = "u_name";
        public static final String ACCOUNT = "u_account";
        public static final String PASSWORD = "u_password";
        public static final String EMAIL = "u_email";
        public static final String LEVEL = "u_level";
    }

    @Override
    public String toString() {
        return "uID" + uID + "uName" + uName + "uAccount" + uAccount + "uPassword" + uPassword + "uEmail" + uEmail + "uLevel" + uLevel;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }


    public int getuID() {
        return uID;
    }

    public void setuID(int uID) {
        this.uID = uID;
    }

    public String getuAccount() {
        return uAccount;
    }

    public void setuAccount(String uAccount) {
        this.uAccount = uAccount;
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword;
    }

    public String getuEmail() {
        return uEmail;
    }

    public void setuEmail(String uEmail) {
        this.uEmail = uEmail;
    }

    public int getuLevel() {
        return uLevel;
    }

    public void setuLevel(int uLevel) {
        this.uLevel = uLevel;
    }

    public void print() {
        System.out.printf("%d %s \n", getuID(), getuName());
    }
}
